.class Lrexsee/natives/RexseeJavaBar$2;
.super Ljava/lang/Object;
.source "RexseeJavaBar.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/natives/RexseeJavaBar;->add(Ljava/lang/String;Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/natives/RexseeJavaBar;

.field private final synthetic val$id:Ljava/lang/String;

.field private final synthetic val$style:Ljava/lang/String;

.field private final synthetic val$viewTag:Lrexsee/natives/ViewTag;


# direct methods
.method constructor <init>(Lrexsee/natives/RexseeJavaBar;Ljava/lang/String;Lrexsee/natives/ViewTag;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/natives/RexseeJavaBar$2;->this$0:Lrexsee/natives/RexseeJavaBar;

    iput-object p2, p0, Lrexsee/natives/RexseeJavaBar$2;->val$style:Ljava/lang/String;

    iput-object p3, p0, Lrexsee/natives/RexseeJavaBar$2;->val$viewTag:Lrexsee/natives/ViewTag;

    iput-object p4, p0, Lrexsee/natives/RexseeJavaBar$2;->val$id:Ljava/lang/String;

    .line 97
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    .prologue
    .line 101
    :try_start_0
    new-instance v0, Lrexsee/natives/widget/JavaBar;

    iget-object v2, p0, Lrexsee/natives/RexseeJavaBar$2;->this$0:Lrexsee/natives/RexseeJavaBar;

    # getter for: Lrexsee/natives/RexseeJavaBar;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v2}, Lrexsee/natives/RexseeJavaBar;->access$1(Lrexsee/natives/RexseeJavaBar;)Lrexsee/core/browser/Browser;

    move-result-object v2

    iget-object v3, p0, Lrexsee/natives/RexseeJavaBar$2;->val$style:Ljava/lang/String;

    iget-object v4, p0, Lrexsee/natives/RexseeJavaBar$2;->val$viewTag:Lrexsee/natives/ViewTag;

    invoke-direct {v0, v2, v3, v4}, Lrexsee/natives/widget/JavaBar;-><init>(Lrexsee/core/browser/Browser;Ljava/lang/String;Lrexsee/natives/ViewTag;)V

    .line 102
    .local v0, "bar":Lrexsee/natives/widget/JavaBar;
    iget-object v2, p0, Lrexsee/natives/RexseeJavaBar$2;->this$0:Lrexsee/natives/RexseeJavaBar;

    # getter for: Lrexsee/natives/RexseeJavaBar;->mMap:Ljava/util/HashMap;
    invoke-static {v2}, Lrexsee/natives/RexseeJavaBar;->access$3(Lrexsee/natives/RexseeJavaBar;)Ljava/util/HashMap;

    move-result-object v2

    iget-object v3, p0, Lrexsee/natives/RexseeJavaBar$2;->val$id:Ljava/lang/String;

    invoke-virtual {v2, v3, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 103
    iget-object v2, p0, Lrexsee/natives/RexseeJavaBar$2;->this$0:Lrexsee/natives/RexseeJavaBar;

    # getter for: Lrexsee/natives/RexseeJavaBar;->mLayout:Lrexsee/core/browser/clazz/RootViewInterface;
    invoke-static {v2}, Lrexsee/natives/RexseeJavaBar;->access$0(Lrexsee/natives/RexseeJavaBar;)Lrexsee/core/browser/clazz/RootViewInterface;

    move-result-object v2

    iget-object v3, v0, Lrexsee/natives/widget/JavaBar;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v3, v3, Lrexsee/core/style/StyleSheet;->bar_position:Ljava/lang/String;

    iget-object v4, v0, Lrexsee/natives/widget/JavaBar;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v4, v4, Lrexsee/core/style/StyleSheet;->index:Ljava/lang/String;

    const/4 v5, -0x1

    invoke-static {v4, v5}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result v4

    invoke-interface {v2, v3, v4, v0}, Lrexsee/core/browser/clazz/RootViewInterface;->addChild(Ljava/lang/String;ILandroid/view/View;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 107
    .end local v0    # "bar":Lrexsee/natives/widget/JavaBar;
    :goto_0
    iget-object v2, p0, Lrexsee/natives/RexseeJavaBar$2;->this$0:Lrexsee/natives/RexseeJavaBar;

    const/4 v3, 0x1

    invoke-static {v2, v3}, Lrexsee/natives/RexseeJavaBar;->access$2(Lrexsee/natives/RexseeJavaBar;Z)V

    .line 108
    return-void

    .line 104
    :catch_0
    move-exception v2

    move-object v1, v2

    .line 105
    .local v1, "e":Ljava/lang/Exception;
    iget-object v2, p0, Lrexsee/natives/RexseeJavaBar$2;->this$0:Lrexsee/natives/RexseeJavaBar;

    # getter for: Lrexsee/natives/RexseeJavaBar;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v2}, Lrexsee/natives/RexseeJavaBar;->access$1(Lrexsee/natives/RexseeJavaBar;)Lrexsee/core/browser/Browser;

    move-result-object v2

    iget-object v3, p0, Lrexsee/natives/RexseeJavaBar$2;->this$0:Lrexsee/natives/RexseeJavaBar;

    invoke-virtual {v3}, Lrexsee/natives/RexseeJavaBar;->getInterfaceName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3, v1}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_0
.end method
